package Fragefenster;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.*;
import javax.swing.*;

public class Frage extends JFrame implements ActionListener {

	
	public JLabel Fragefenster;
	public JLabel MeineFrage;
	public JTextField Fragefeld;
	public JLabel Kategorie;
	public JLabel Thema;
	public JButton OK;
	public JButton Abbrechen;
	//public JLabel Bild;
	//public ImageIcon img;

	public Frage() {

	//	img = new ImageIcon(getClass().getResource("icon_fragezeichen.png"));
		//Bild = new JLabel(img);
		
		this.Fragefenster = new JLabel("Fragestellung");
		this.MeineFrage = new JLabel("Meine Frage:");
		this.Fragefeld = new JTextField("Eingabe der Frage");
		this.Kategorie = new JLabel("Kategorie");
		this.Thema = new JLabel("Thema");
		this.OK = new JButton("OK");
		this.Abbrechen = new JButton("Abbrechen");

		this.setLayout(null);
		this.add(Fragefenster);
		this.add(MeineFrage);
		this.add(Fragefeld);
		this.add(Kategorie);
		this.add(Thema);
		this.add(OK);
		this.add(Abbrechen);
		//this.add(Bild);

		this.Fragefenster.setBounds(15, 15, 300, 20);
		this.MeineFrage.setBounds(15, 50, 300, 20);
		this.Fragefeld.setBounds(15, 70, 300, 100);
		this.Kategorie.setBounds(15, 230, 300, 20);
		this.Thema.setBounds(150, 230, 300, 20);
		this.OK.setBounds(15, 300, 100, 20);
		this.Abbrechen.setBounds(190, 300, 100, 20);
	//	this.Bild.setBounds(170, 250, 300, 20);

		Abbrechen.addActionListener(new ActionListener() {
			
			
			public void actionPerformed(ActionEvent e) {
				dispose();
			}
		});

	}

	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub

	}

}
